package xcmg.device.dao.mapper.ratingManager;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.ratingManager.ScoreInfoDO;
import xcmg.device.service.vo.ratingManager.BasisQueryVO;

import java.util.List;

@Mapper
@Repository
public interface ScoreInfoDOMapper {
    int deleteByPrimaryKey(String id);

    int deleteByRatingId(@Param("ratingId") String ratingId);

    int insert(ScoreInfoDO record);

    int insertSelective(ScoreInfoDO record);

    ScoreInfoDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ScoreInfoDO record);

    int updateByPrimaryKey(ScoreInfoDO record);

    int batchInsert(@Param("recordList") List<ScoreInfoDO> recordList );

    List<ScoreInfoDO> getConfigClient(@Param("ratingId") String ratingId);

    int batchUpdate(@Param("updateList") List<ScoreInfoDO> updateList);

    List<ScoreInfoDO> selectByRatingId(BasisQueryVO baiscQueryVO);

    List<ScoreInfoDO> selectByRatingIdRanking(@Param("ratingId") String ratingId,@Param("startRanking") Integer startRanking,@Param("endRanking") Integer endRanking);

    int updateByrRatingIdRanking(@Param("ratingId") String ratingId,@Param("startRanking") Integer startRanking,
                           @Param("endRanking") Integer endRanking,@Param("grad") String grad);
}